package com.example.repeatsubmitdemo.controller;

import com.example.repeatsubmitdemo.repeatSubmit.RepeatSubmit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tianzhuang
 * @version 1.0
 * @date 2022/1/11 13:51
 */
@RestController
@RequestMapping("submit")
public class SubmitController {

    @GetMapping("test")
    @RepeatSubmit
    public String test() {
        return "test";
    }
}
